package com.blog.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.springframework.stereotype.Component;

 
@Component
@Entity
@Table
public final class User implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String ID;
	
	private String Name;
	private String PassWord;
	
	@Id         //主键
	@GeneratedValue(strategy=GenerationType.AUTO,generator="generator")
	@GenericGenerator(name="generator",strategy="identity")
	public final String getID() {
		return ID;
	}
	
	public final void setID(String iD) {
		ID = iD;
	}
	@Column(name="name")
	public final String getName() {
		return Name;
	}
	public final void setName(String name) {
		Name = name;
	}
	
	@Column(name="password")
	public final String getPassWord() {
		return PassWord;
	}
	public final void setPassWord(String passWord) {
		PassWord = passWord;
	}
	 

}
